package com.wintop.youyuan.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "personals_condition")
public class PersonalsCondition {// 征友条件表
	private int id;
	private String userid;
	private String address;// 对方居住地
	private int minAge;// 最小年龄
	private int maxAge;// 最大年龄
	private int minHeight;// 最小身高
	private int maxHeight;// 最大身高
	private int education;// 对方学历
	private int income;// 对方收入

	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getMinAge() {
		return minAge;
	}

	public void setMinAge(int minAge) {
		this.minAge = minAge;
	}

	public int getMaxAge() {
		return maxAge;
	}

	public void setMaxAge(int maxAge) {
		this.maxAge = maxAge;
	}

	public int getMinHeight() {
		return minHeight;
	}

	public void setMinHeight(int minHeight) {
		this.minHeight = minHeight;
	}

	public int getMaxHeight() {
		return maxHeight;
	}

	public void setMaxHeight(int maxHeight) {
		this.maxHeight = maxHeight;
	}

	public int getEducation() {
		return education;
	}

	public void setEducation(int education) {
		this.education = education;
	}

	public int getIncome() {
		return income;
	}

	public void setIncome(int income) {
		this.income = income;
	}

	public PersonalsCondition() {
		super();
		// TODO Auto-generated constructor stub
	}

	public PersonalsCondition(int id, String userid, String address,
			int minAge, int maxAge, int minHeight, int maxHeight,
			int education, int income) {
		super();
		this.id = id;
		this.userid = userid;
		this.address = address;
		this.minAge = minAge;
		this.maxAge = maxAge;
		this.minHeight = minHeight;
		this.maxHeight = maxHeight;
		this.education = education;
		this.income = income;
	}

	@Override
	public String toString() {
		return "PersonalsCondition [id=" + id + ", userid=" + userid
				+ ", address=" + address + ", minAge=" + minAge + ", maxAge="
				+ maxAge + ", minHeight=" + minHeight + ", maxHeight="
				+ maxHeight + ", education=" + education + ", income=" + income
				+ "]";
	}

}
